package com.foreknow.service;

import com.foreknow.dao.UserDao;
import com.foreknow.dao.impl.UserDaoImpl;
import com.foreknow.model.User;

import java.sql.SQLException;

public class UserServie {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void add(User user) throws SQLException {
        userDao.save(user);
    }
}
